<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>WebGISDemo</title>
    <script src="./js/ol.js"></script>
    <link rel="stylesheet" href="./style/ol.css">
    <link rel="stylesheet" href="./style/custom.css">
    <style type="text/css">
    body {
       margin: 0;
       padding: 0;
    }
	.marker-popup {  
    background: rgba(0, 0, 0, 0.4); /* 40%透明度黑色背景 */
    border-radius: 8px;
    padding: 20px;
    width: 400px; /* 增加宽度以容纳所有内容 */
    color: white;
    box-sizing: border-box;
}

.marker-popup .popup-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.marker-popup label {
    font-size: 18px;
    color: white;
    margin-right: 10px;
    white-space: nowrap;
    width: 100px; /* 固定标签宽度 */
    text-align: right;
}

.marker-popup select,
.marker-popup input {
    flex-grow: 1;
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 18px;
    padding: 8px;
    border-radius: 4px;
    width: 200px; /* 固定输入框宽度 */
}

.marker-popup .coordinate-input {
    display: flex;
    gap: 10px;
}

.marker-popup .coordinate-input input {
    width: 95px; /* 经纬度输入框宽度 */
}

.marker-popup .elevation-input {
    position: relative;
}

.marker-popup .elevation-input input {
    padding-right: 30px;
}

.marker-popup .elevation-input::after {
    content: 'm';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 18px;
}

.marker-popup .popup-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.marker-popup .popup-actions button {
    padding: 10px 20px;
    font-size: 18px;
    border: 2px solid white;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    color: white;
    transition: background-color 0.3s;
}

.marker-popup .popup-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}
    html, body, #map{
       width: 100%;
       height: 100%;
    }

    </style>
</head>
<body>
<div id="map"></div>
<script src="./js/main.js"></script>
</body>
</html>